import request from '@/utils/request'

export function getList(data) {
  return request({
    url: `/cmdb-firewall/page/${data.current}/${data.size}`,
    method: 'get'
  })
}
export function doAdd(data){
    return request({
        url: '/cmdb-firewall/',
        method: 'post',
        data
    })
}
export function doEdit(data) {
  return request({
    url: '/cmdb-firewall/',
    method: 'put',
    data
  })
}
export function doDelete(id) {
  return request({
    url: `/cmdb-firewall/${id}`,
    method: 'delete'
  })
}
export function getOne(id) {
  return request({
    url: `/cmdb-firewall/${id}`,
    method: 'get'
  })
}
export function getAll() {
  return request({
    url: `/cmdb-firewall/`,
    method: 'get'
  })
}
